import { createApp } from 'vue'
import '@/styles/main.scss'
import App from './App.vue'
// 完整引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import store from '@/stores/index'
// import router from '@/router/index'
// ref
// import App from '@/views/ref.vue'
// reactive
// import App from '@/views/reactive.vue'
// computed
// import App from '@/views/computed.vue'
// parent-props
// import App from '@/views/parentProps.vue'
// provide
// import App from '@/views/provide.vue'
// import App from '@/views/theme.vue'
// import App from '@/views/moduleRef.vue'
// import App from '@/views/moduleRef2.vue'
const app = createApp(App)
// 安装element-plus插件
app.use(ElementPlus)
//element - plus国家化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
app.use(ElementPlus, {
  locale: zhCn //element-plus  国际化标志配置
})
// svg图标需要的配置代码
import 'virtual:svg-icons-register'
// 引入自定义插件对象：注册整个项目全局组件

import gloalComponent from '@/components'
app.use(gloalComponent)

// pinia
app.use(store)
// app.use(router)
app.mount('#app')
